package user_router

import (
	user_controller "gin-project/controller/user"
	"gin-project/middleware"

	"github.com/gin-gonic/gin"
)

func UserRouterInit(r *gin.Engine) {
	apiUserRouter := r.Group("api/user", middleware.CheckToken)
	{
		apiUserRouter.POST("add", user_controller.AddUser)
		apiUserRouter.POST("listall", user_controller.GetUserList)
		apiUserRouter.POST("getUserByUsername", user_controller.GetUserByUsername)
	}
}
